<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
    </style>
</head>

<body style="color:#333;padding:3px;">
<div class="page-heade">
    <h2 class="title_color text-center">所有拜访签到报表</h2>
</div>
<!-- 标题 -->
<form action="" class="form-inline" method="get" id="form1">

    <table class="table-bordered table">
        <tr>
            <td>
                <a class="btn btn-primary btn-sm btn-outline" id="rbb" href="{:url('allbfqdbb')}">日报表</a><span class="lr_5"></span>
                <a class="btn btn-primary btn-sm btn-outline" id="zbb" href="{:url('allbfqdbb_zbb')}">周报表</a><span class="lr_5"></span>
                <a class="btn btn-primary btn-sm btn-outline" id="ybb" href="{:url('allbfqdbb_ybb')}">月报表</a><span class="lr_5"></span>
            </td>
        </tr>
        <tr>
            <td>
                <span>日期：</span>
                <a href="javascript:;" class="btn btn-sm btn-info" onclick="yesterday()">
                    <<前一天
                </a>
                <input type="text" name="date" id="today" value="{$date}" class="form-control"/>
                <a href="javascript:;" class="btn btn-sm btn-success" onclick="tomorrow()">后一天>></a>
                <span class="lr_5"></span>

                姓名：<input type="text" class="form-control" name=""><span class="lr_5"></span>
                部门：<input type="text" class="form-control" name="">

                <button class="btn-info btn-sm btn">查询</button>
                <span class="lr_5"></span>
                <button class="btn-info btn-sm btn" id="reset" type="reset">清空</button>
                <span class="lr_5"></span>
                <button class="btn-info btn-sm btn lendExcel" type="button">导出Excel</button>
                <span class="lr_5"></span>
                <button class="btn-info btn-sm btn lendExcel1" type="button">导出拜访列表</button>

            </td>
        </tr>
    </table>
</form>
<div>
    <table class="tab-content table-bordered text-center table-hover table bud_hei" border="1" style="margin-bottom:1px"
           id="activeT">
        <tr class="info">
            <td>序号</td>
            <td>部门</td>
            <td>姓名</td>
            <td>职位</td>
            <td>考勤次数</td>
            <td>拜访总数</td>
            <td>已拜访经销商</td>
            <td class="text-danger">计划内失去经销商</td>
            <td>已拜访网点</td>
            <td class="text-danger">计划内失去经销商</td>
            <td>市场活动</td>
            <td>定点签到</td>
            <td>总行程(千米)</td>
        </tr>
        <tr>
            <td>1</td>
            <td>总经办</td>
            <td>张晓明</td>
            <td></td>
            <td><a class="J_menuItem" href="javascript:;">0</a></td>
            <td><a class="J_menuItem" href="javascript:;">0</a></td>
            <td><a class="J_menuItem" href="{:url('Other/myagencybf')}">0</a></td>
            <td><a class="J_menuItem" href="javascript:;" class="text-danger">0</a></td>
            <td><a class="J_menuItem" href="{:url('Other/mynetbaifang')}">0</a></td>
            <td><a class="J_menuItem" href="javascript:;" class="text-danger">0</a></td>
            <td><a class="J_menuItem" href="{:url('Other/mymarketactionbf')}">0</a></td>
            <td><a class="J_menuItem" href="javascript:;">0</a></td>
            <td></td>
        </tr>


    </table>
</div>

<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/layout/js/common.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script>
</script>

<script>
//    $("#today").val(today(new Date()));

    function today(date) {
        var y = date.getFullYear();
        var m = date.getMonth() + 1;
        var d = date.getDate();
        return y + "-" + m + "-" + d;
    }


    function yesterday() {
        var val = $("#today").val();
        if (val) {
            var date = new Date(val);
            date -= 24 * 60 * 60 * 1000;
            $("#today").val(today(new Date(date)));
            $('#form1').submit()
        }
    }

    function tomorrow() {
        var val = $("#today").val();
        if (val) {
            var date = new Date(val);
            date = date.getTime() + 24 * 60 * 60 * 1000;
            $("#today").val(today(new Date(date)));
            $('#form1').submit()
        }
    }

    $(document).ready(function () {
        $('#reset').on('click', function () {
            $("#form1 input").each(function () {
                $(this).val('');
            });
            $("#form1 select").each(function () {
                $(this).val('');
            });
            $('#form1').submit()
            return false
        })
    })

</script>
</body>

</html>
